﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;


namespace EZCRS.HCMS.Entity
{
    #region H_District
    /// <summary>
    /// This object represents the properties and methods of a H_District.
    /// </summary>
    public class HCRS_District
    {
        private int? _id;
        private int? _cityID;
        private string _name = String.Empty;
        private string _remark = String.Empty;
        private string _latitude = String.Empty;
        private string _longitude = String.Empty;

        public HCRS_District()
        {
        }

        public HCRS_District(DataRow dr)
        {
            if (dr!=null)
            {
                _id = Convert.ToInt32(dr["DistrictID"].ToString());
                _cityID = Convert.ToInt32(dr["CityID"].ToString());
                _name = dr["Name"].ToString();
                _remark = dr["Remark"].ToString();
                _latitude = dr["Latitude"].ToString();
                _longitude = dr["Longitude"].ToString();
            }
        }

        
        #region Public Properties
        [DataFieldAttribute("DistrictID","pk")]
        public int? Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int? CityID
        {
            get { return _cityID; }
            set { _cityID = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string Remark
        {
            get { return _remark; }
            set { _remark = value; }
        }

        public string Latitude
        {
            get { return _latitude; }
            set { _latitude = value; }
        }

        public string Longitude
        {
            get { return _longitude; }
            set { _longitude = value; }
        }
        #endregion
    }
    #endregion
}
